package www.hrabbit.cn.model;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * ftp配置文件封装
 * @Auther: hrabbit
 * @Date: 2018-04-17 下午6:13
 * @Description:
 */
@Component("ftpProperties")
public class FTPProperties {
    //ftp服务器地址
    @Value("${ftp.hostName}")
    private String hostName;

    //ftp服务器端口号默认为21
    @Value("${ftp.port}")
    private String port;

    //ftp的用户名称
    @Value("${ftp.userName}")
    private String userName;

    //ftp的密码
    @Value("${ftp.passWord}")
    private String passWord;

    //存储图片数据的根路径
    @Value("${ftp.baseFile}")
    private String baseFile;

    //文件http服务器地址
    @Value("${ftp.serverUrl}")
    private String serverUrl;

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getBaseFile() {
        return baseFile;
    }

    public void setBaseFile(String baseFile) {
        this.baseFile = baseFile;
    }

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }
}
